package com.epfresh.utils;

import android.graphics.Color;

/**
 * Created by zhaozhenqiang on 2016/4/1.
 */
public class ColorUtils {
    public static int parseColor(String color) {
        try {
            if (color == null || color.equals("")) {
                return Color.RED;
            } else {
                return Color.parseColor(color);
            }
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return Color.RED;
        }
    }
}
